#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void math(int n);//函数声明

int main()
{
	int n = 0;
	scanf("%d", &n);
	math(n);
	return 0;
}
 void math(int n)
{
	int row = 0;//控制行
	int col = 0;//控制列
	for (row = 1; row <=n; row++)
	{
		for (col = 1; col <= row; col++)
		{
			printf("  %d x %d = %d", col, row, col *row);
		}
		printf("\n");
	}
	return 0;
}